package com.yzw.hello.model.dao.jpa.business.videoDao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.yzw.hello.model.pojos.business.video.Video;

@Repository
public interface VideoDao extends CrudRepository<Video, Integer> {

	@Query("from Video v where v.id = :id")
	Video findOne(@Param("id")Integer id);
	
}
